package com.whfc.ms.api.base.service.impl;

import com.whfc.common.result.PageData;
import com.whfc.fuum.dto.SysWorkAreaDTO;
import com.whfc.fuum.param.SysWorkAreaAddParam;
import com.whfc.fuum.param.SysWorkAreaEditParam;
import com.whfc.fuum.service.SysWorkAreaService;
import com.whfc.ms.api.base.service.WorkAreaService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author qzexing
 * @version 1.0
 * @date 2021-09-01 15:40
 */
@Service
public class WorkAreaServiceImpl implements WorkAreaService {

    @DubboReference(interfaceClass = SysWorkAreaService.class, version = "1.0.0")
    private SysWorkAreaService sysWorkAreaService;

    @Override
    public PageData<SysWorkAreaDTO> list(Integer deptId, Integer pageNum, Integer pageSize, String keyword) {
        return sysWorkAreaService.list(deptId, pageNum, pageSize, keyword);
    }

    @Override
    public List<SysWorkAreaDTO> list(Integer deptId, String keyword) {
        return sysWorkAreaService.list(deptId, keyword);
    }

    @Override
    public void add(SysWorkAreaAddParam param) {
        sysWorkAreaService.add(param);
    }

    @Override
    public void edit(SysWorkAreaEditParam param) {
        sysWorkAreaService.edit(param);
    }

    @Override
    public void del(Integer workAreaId) {
        sysWorkAreaService.del(workAreaId);
    }
}
